// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableSetComment.h"
#include "../../visitor/SQLASTVisitor.h"

SQLExpr_ptr SQLAlterTableSetComment::getComment()
{
  return comment;
}

void SQLAlterTableSetComment::setComment(SQLExpr_ptr comment)
{
  if (comment != nullptr)
  {
    comment->setParent(SharedObject(SQLAlterTableSetComment));
  }
  this->comment = comment;
}

// @Override
void SQLAlterTableSetComment::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableSetComment)))
  {
    acceptChild(visitor, comment);
  }
  visitor->endVisit(SharedObject(SQLAlterTableSetComment));
}
